﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsDataSnyc")]
    public class MsDataSnyc : BaseEntity
    {
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        [Key]
        [Column(TypeName = "uuid")]
        public Guid ItemId { get; set; }

        [Column(TypeName = "varchar(255)")]
        public string ItemType { get; set; }

        [Column(TypeName = "bool")]
        public bool AlreadyUpload { get; set; }

        [Column(TypeName = "timestamp")]
        public DateTime UploadTime { get; set; }

        [Column(TypeName = "varchar(512)")]
        public string ErrorStr { get; set; }

        [Column(TypeName = "bool")]
        public bool NeedUpload { get; set; }

        [Column(TypeName = "varchar(512)")]
        public string ExpandInfo { get; set; }

        [Column(TypeName = "int4")]
        public int Priority { get; set; }
    }
}